package com.digitalbonestudios.slugpug.tv;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import com.digitalbonestudios.framework.Screen;
import com.digitalbonestudios.framework.impl.GLGame;

public class MainActivity extends GLGame {
	boolean firstLoad = true;
	
	@Override
	public Screen getStartScreen() {
		return new MenuScreen(this);
	}
	
	@Override
    public void onSurfaceCreated(GL10 gl, EGLConfig config) {         
        super.onSurfaceCreated(gl, config);
        if(firstLoad) {
            Assets.load(this);
            firstLoad = false;            
        } else {
            Assets.reload();
        }
    }     
    
	@Override
    public void onPause() {
        super.onPause();
        Assets.music.pause();
        
    }
}
